${package}

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;

/**
 * @author ${author} on ${date}
 */
@Data
@Schema(name = "${javabeanName}", description = "${tableComment}")
public class ${javabeanName} implements Serializable {

<#list fieldForGeneratorList as field>
    <#if (field.isPrimaryKey)>@TableId(value = "${field.columnRealName}")</#if>
    private ${field.columnRealType} ${field.columnRealName};</#list>

<#list fieldForGeneratorList as field>
    public static final String ${field.uppercaseName} = "${field.columnRealName}";
</#list>

<#list fieldForGeneratorList as field>
    @Schema(description = "${field.comment}", example = "", required = false)
    public ${field.columnRealType} ${field.getterMethodName}(){
        return ${field.columnRealName};
    }
    <#--public void ${field.setterMethodName}(${field.columnRealType} ${field.columnRealName}){-->
        <#--this.${field.columnRealName} = ${field.columnRealName};-->
    <#--}-->
</#list>
}
